#FROM registry-vpc.cn-hangzhou.aliyuncs.com/panit/php:73v0.0.1
#FROM registry-vpc.cn-hangzhou.aliyuncs.com/panit/php:56v0.0.1
MAINTAINER wuhongliang

RUN mkdir -p /data/www/xxx
ADD . /data/www/xxx
ADD FileRewrite/ /
RUN chown -R www-data:www-data /data/www && \
    chown -R www-data:www-data /data/log && \
    chmod +x /root/*.sh && \
    chmod +x /data/www/xxx/bin/init.sh && \
    /bin/bash /data/www/xxx/bin/init.sh && \
    echo "    StrictHostKeyChecking no" >> /etc/ssh/ssh_config

ENTRYPOINT ["/root/entrypoint.sh"]
CMD ["nginx"]